<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<h1>再次您的欢迎回来</h1>

<div class="grandpar" id="grandpar" style="width:300px;height:300px;border:1px solid red">
    <div class="father" id="father" style="width:200px;height:200px;border:1px solid blue;">
        <div class="son" id="son">22222</div>
    </div>
</div>
<button id="btn">asd</button>
<script>
    console.log(window.document) // #document
    console.log(window.document.__proto__) // HTMLDocument
    console.log(window.document.__proto__.__proto__) // Document
    console.log(window.document.__proto__.__proto__.__proto__)
    console.log(window.document.__proto__.__proto__.__proto__.__proto__)
    console.log(window.document.__proto__.__proto__.__proto__.__proto__.__proto__)
    for(let i in window.document.__proto__.__proto__){
        Object.defineProperty(window.document.__proto__.__proto__ , item, {
            get:function(){
                throw '不能操作DOM'
                return null
            }
        })
    }
    Object.defineProperty(window,'XMLHttpRequest',{
        get:function(){
            throw '不能发起请求'
            return null
        }
    })
</script>

</body>
</html>
